#include<bits/stdc++.h>
#define IOS ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
using namespace std;
const int N = 1e5+10;
int va[N],n,vis[N],ans;
vector <int> v;

int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    IOS;
    cin>>n;
    for(int i = 1;i <= n;i++)
    {
        int a;
        cin>>a;
        va[i] = a;
    }
    sort(va+1,va+n+1);
    for(int i = 1;i <= n;i++)
    {
        v.push_back(va[i]);
    }
    for(int i = 0;i < v.size();i++)
    {
        for(int j = i+1;j < v.size();j++)
        {
             if(v[i] < v[j] && vis[j] == 0 && v[i] != 0)
            {
                vis[j]++;
                v[i] = 0;
            }
        }
    }
    for(int i = 0;i < v.size();i++)
    {
        if(v[i] != 0)   ans++;
    }
    cout<<ans<<"\n";
    return 0;
}
